import request from '@/utils/request'

const mudulePath = 'match/schedule/'
export function importSchedule(data) {
  return request({
    url: mudulePath + 'import',
    method: 'post',
    data
  })
}

export function createScheduleByOnline(data) {
  return request({
    url: mudulePath + 'createScheduleByOnline',
    method: 'post',
    data
  })
}

export function getScheduleInfo(data) {
  return request({
    url: mudulePath + 'info',
    method: 'get',
    params: data
  })
}

export function getScheduleList(data) {
  return request({
    url: mudulePath + 'list',
    method: 'get',
    params: data
  })
}

export function deleteSchedule(data) {
  return request({
    url: mudulePath + 'deleteSchedule',
    method: 'post',
    data
  })
}

export function getMatchScoreList(data) {
  return request({
    url: mudulePath + 'getMatchScoreList',
    method: 'get',
    params: data
  })
}

export function getRefereeScoreList(data) {
  return request({
    url: mudulePath + 'getRefereeScoreList',
    method: 'get',
    params: data
  })
}

export function getLockMatch(data) {
  return request({
    url: mudulePath + 'getLockMatch',
    method: 'get',
    params: data
  })
}

export function getMultiLockMatch(data) {
  return request({
    url: mudulePath + 'getMultiLockMatch',
    method: 'get',
    params: data
  })
}

export function updateTeamAndName(data) {
  return request({
    url: mudulePath + 'updateTeamAndName',
    method: 'post',
    data
  })
}

export function updateScore(data) {
  return request({
    url: mudulePath + 'updateScore',
    method: 'post',
    data
  })
}

export function updatepPsEntry(data) {
  return request({
    url: mudulePath + 'updatepPsEntry',
    method: 'get',
    params: data
  })
}

export function showScore(data) {
  return request({
    url: mudulePath + 'showScore',
    method: 'get',
    params: data
  })
}

export function showRanking(data) {
  return request({
    url: mudulePath + 'showRanking',
    method: 'get',
    params: data
  })
}

export function checkReferee(data) {
  return request({
    url: mudulePath + 'checkReferee',
    method: 'get',
    params: data
  })
}

export function updateMatchSchedule(data) {
  return request({
    url: mudulePath + 'updateMatchSchedule',
    method: 'post',
    params: data
  })
}

export function matchScheduleForCodeList(data) {
  return request({
    url: mudulePath + 'matchScheduleForCodeList',
    method: 'get',
    params: data
  })
}
export function lockTwoTimeChange(data) {
  return request({
    url: mudulePath + 'lockTwoTimeChange',
    method: 'post',
    params: data
  })
}
